import './index.scss'
import { Modal } from 'antd';
const ConfirmDialog = ({title,isModalOpen,text,handleOk,handleCancel,okText,cancelText}) => {
    return (
        <>
            <Modal id={"dialog"} title={title||"Basic Modal"} open={isModalOpen} onOk={handleOk} onCancel={handleCancel} okText={okText||'确定'} cancelText={cancelText||'取消'}>
                <p>{text||'确定执行该操作吗？'}</p>
            </Modal>
        </>
    );
}

export default ConfirmDialog